import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import xyz.weizhi.UserServer;

/**
 * @Author milian
 * @Date 2021/9/5 0005 16:34
 */
public class Mytest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml");
        UserServer userServer = context.getBean("userServer", UserServer.class);
        userServer.add();
    }
}
